<?php
class SystemAction extends LoginAction
{
    public function index ()
    {
        $ConfigModel = D('Config');
        if ($this->isPost()) {
            $rs = $ConfigModel->allUpdate($_POST);
            if($rs){
                $this->errorMessage($rs);
            }else{
                $this->successMessage('修改成功！');
            }
        }
        $config = $ConfigModel->select();
        $this->assign('config', $config);
        $this->display();
    }
}
?>